home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / python2.4 / test / test_threading_local.pyo (.txt) < prev    next >
Python Compiled Bytecode  |  2005-10-18  |  1KB  |  33 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.4)
  3.  
  4. import unittest
  5. from doctest import DocTestSuite
  6. from test import test_support
  7.  
  8. def test_main():
  9.     suite = DocTestSuite('_threading_local')
  10.     
  11.     try:
  12.         _local = _local
  13.         import thread
  14.     except ImportError:
  15.         pass
  16.  
  17.     import _threading_local
  18.     local_orig = _threading_local.local
  19.     
  20.     def setUp(test):
  21.         _threading_local.local = _local
  22.  
  23.     
  24.     def tearDown(test):
  25.         _threading_local.local = local_orig
  26.  
  27.     suite.addTest(DocTestSuite('_threading_local', setUp = setUp, tearDown = tearDown))
  28.     test_support.run_suite(suite)
  29.  
  30. if __name__ == '__main__':
  31.     test_main()
  32.  
  33.